package academic.emailClient.model.entities;

import java.util.ArrayList;

/**
 * Implements filters created inside the email client to organize message distribution according to some parameters
 *
 */
public class Filter {
	private String name;
	private ArrayList<String> query;
	private String destinationFolderPath;
	
	/**
	 * Filter Constructor
	 * @param name
	 * @param query
	 * @param destinationFolderPath
	 */
	public Filter(String name, ArrayList<String> query, String destinationFolderPath) {
		super();
		this.name = name;
		this.query = query;
		this.destinationFolderPath = destinationFolderPath;
	}
	
	/**
	 * Get filter name
	 * @return
	 */
	public String getName() {
		return name;
	}

	/**
	 * Qet the user search query
	 * @return
	 */
	public ArrayList<String> getQuery() {
		return query;
	}
	
	/**
	 * get Destination Folder Path
	 * @return
	 */
	public String getDestinationFolderPath() {
		return destinationFolderPath;
	}
	
	/**
	 * set Filter Name
	 * @param name
	 */
	public void setName(String name){
		this.name = name;
	}
	

	/**
	 * Set user Query
	 * @param query
	 */
	public void setQuery(ArrayList<String> query) {
		this.query = query;
	}
	
	/**
	 * set Destination Folder Path
	 * @param destinationFolderPath
	 */
	public void setDestinationFolderPath(String destinationFolderPath) {
		this.destinationFolderPath = destinationFolderPath;
	}

}
